<!-- basic scripts -->
<!-- jQuery Library -->
<script
	type="text/javascript"
	src="@Href("~/Areas/admin/Scripts/jquery.min.js")"></script>
<!-- end of jQuery Library -->
<!-- page specific plugin scripts -->
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/bootstrap.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/jquery-ui-1.10.2.custom.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/jquery.ui.touch-punch.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/jquery.slimscroll.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/jquery.easy-pie-chart.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/jquery.sparkline.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/jquery.flot.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/jquery.flot.pie.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/jquery.flot.resize.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/ace-elements.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/ace.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/jquery.inputlimiter.1.3.1.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/jquery.gritter.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/chosen.jquery.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/bootbox.min.js'")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Scripts/ckeditor/ckeditor.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/jquery.validate.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/bootbox.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/jquery.maskedinput.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/chosen.jquery.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/jquery.knob.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/jquery.inputlimiter.1.3.1.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/jquery-ui-1.10.2.custom.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/jquery.ui.touch-punch.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/fuelux.spinner.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/bootstrap-datepicker.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/bootstrap-timepicker.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/date.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/daterangepicker.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/bootstrap-colorpicker.min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Content/assets/js/jquery.autosize-min.js")"></script>
<script type="text/javascript" src="@Href("~/Areas/admin/Scripts/jquery.img-preview.js")"></script>
<script type="text/javascript">
<!--
    $(document).ready(function () {
        if ($("#infoMsgContent").html().trim() != "") {
            show_info($("#infoMsgContent").html().trim());
        }
        if ($("#errMsgContent").html().trim() != "") {
            show_error($("#errMsgContent").html().trim());
        }
        if ($("#warningMsgContent").html().trim() != "") {
            show_warning($("#warningMsgContent").html().trim());
        }
        if ($("#successMsgContent").html().trim() != "") {
            show_sucess($("#successMsgContent").html().trim());
        }
    });

    function show_sucess(msg) {
        $.gritter.add({
            // (string | mandatory) the heading of the notification
            title: 'Success!',
            // (string | mandatory) the text inside the notification
            text: msg,
            time: '5000',
            class_name: 'gritter-success'
        });
    }
    function show_info(msg) {
        $.gritter.add({
            // (string | mandatory) the heading of the notification
            title: 'Info!',
            // (string | mandatory) the text inside the notification
            text: msg,
            time: '5000',
            class_name: 'gritter-info'
        });
    }
    function show_error(msg) {
        $.gritter.add({
            title: 'Error!',
            text: msg,
            time: '5000',
            class_name: 'gritter-error'
        });
    }

    function show_warning(msg) {
        $.gritter.add({
            title: 'Warning!',
            text: msg,
            class_name: 'gritter-warning'
        });

    }

    function bootboxprompt(msg) {
        bootbox.prompt(msg, function (result) {
            if (result === null) {
                //Example.show("Prompt dismissed");
            } else {
                return result;
            }
        });
    };

    function bootboxconfirm() {
        bootbox.confirm("Are you sure?", function (result) {
            return result;
        });
    };

    function bootboxdialog(msg) {
        bootbox.dialog(msg, [{
            "label": "Success!",
            "class": "btn-small btn-success",
            "callback": function () {
                //Example.show("great success");
            }
        }, {
            "label": "Close",
            "class": "btn-small"
        }]
	);
    };

    $('.ace-tooltip').tooltip();


//-->
</script>
<script>
    var QueryString = function () {
        // This function is anonymous, is executed immediately and
        // the return value is assigned to QueryString!
        var query_string = {};
        var query = window.location.search.substring(1);
        var vars = query.split("&");
        for (var i = 0; i < vars.length; i++) {
            var pair = vars[i].split("=");
            // If first entry with this name
            if (typeof query_string[pair[0]] === "undefined") {
                query_string[pair[0]] = pair[1];
                // If second entry with this name
            } else if (typeof query_string[pair[0]] === "string") {
                var arr = [query_string[pair[0]], pair[1]];
                query_string[pair[0]] = arr;
                // If third or later entry with this name
            } else {
                query_string[pair[0]].push(pair[1]);
            }
        }
        return query_string;
    } ();
</script>
